package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 项目分类
 * </p>
 *
 * @author baiqiang
 * @since 2020-10-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("prj_project_class")
@ApiModel(value="ErpProjectClass对象", description="项目分类")
public class ErpProjectClass extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "父级id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "制单日期")
    @TableField("made_date")
    private LocalDateTime madeDate;

    @ApiModelProperty(value = "生成项目档案 ")
    @TableField("is_gen_project")
    private Integer isGenProject;

    @ApiModelProperty(value = "是否已经生成项目档案")
    @TableField("is_generated_project")
    private Integer isGeneratedProject;

    @ApiModelProperty(value = "生成项目档案方式 ")
    @TableField("gen_project_style")
    private Integer genProjectStyle;

    @ApiModelProperty(value = "物料分类级次 ")
    @TableField("inventory_class_depth")
    private Integer inventoryClassDepth;

    @ApiModelProperty(value = "状态0停用 1启用")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "是否末级")
    @TableField("is_end_node")
    private Boolean isEndNode;

    @ApiModelProperty(value = "级次")
    @TableField("depth")
    private Integer depth;

    @ApiModelProperty(value = "修改时间")
    @TableField("updated_date")
    private LocalDateTime updatedDate;

    @ApiModelProperty(value = "修改人")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_date")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "修改人")
    @TableField("created_user_id")
    private Integer createdUserId;

}
